package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;

import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.entity.bean.StatForkliftTaskDetailIndex;

import java.util.List;

public class OffLineUnBindAdapter extends CommonRecycleAdapter<StatForkliftTaskDetailIndex> {


  public OffLineUnBindAdapter(Context context, List<StatForkliftTaskDetailIndex> dataList,
      CommonViewHolder.onItemCommonClickListener mCommonClickListener) {
    super(context, dataList, R.layout.item_offline_unbind);
  }

  @Override
  public void bindData(CommonViewHolder holder, StatForkliftTaskDetailIndex data, int position) {

    holder.setText(R.id.tv_order_num, position + 1 + "");
    holder.setText(R.id.tv_waybill, data.getChildWaybillNo() == null ? "" : data.getChildWaybillNo());
    holder.setText(R.id.tv_areaCode, data.getAreaCode() == null ? "" : data.getAreaCode());
    holder.setText(R.id.tv_next_station, data.getNextDept() == null ? "" : data.getNextDept());
  }
}
